package com.ruoyi.project.examine.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;


import java.util.Date;
import java.util.Objects;

/**
 * 检查管理的实现类
 */
public class CheckMode extends BaseEntity {
    //病例单号--case_code
    private String caseCode;
    //检查单号--check_code
    private String checkCode;
    //患者ID--pati_id
    private String patiID;
    //患者姓名--pati_name
    private String patiName;
    //检查项目---exam_name
    private String examName;
    //检查结果--checkresult
    private String checkResult;
    //检查状态--checkstatus
    private Integer checkStatus;
    //创建者---createBy
    private String createBy;
    //原图片名称
    private String filesite;
    //系统随机命名的名称
    private String filename;
    //创建时间--createTime
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //更新者----updateBy
    private String updateBy;
    //更新时间--updateTime
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    //备注------remark
    private String remark;

    //无参构造
    public CheckMode(){}

    public CheckMode(String caseCode, String checkCode, String patiID, String patiName, String examName, String checkResult, Integer checkStatus, String createBy, String filesite, String filename, Date createTime, String updateBy, Date updateTime, String remark) {
        this.caseCode = caseCode;
        this.checkCode = checkCode;
        this.patiID = patiID;
        this.patiName = patiName;
        this.examName = examName;
        this.checkResult = checkResult;
        this.checkStatus = checkStatus;
        this.createBy = createBy;
        this.filesite = filesite;
        this.filename = filename;
        this.createTime = createTime;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.remark = remark;
    }

    public String getCaseCode() {
        return caseCode;
    }

    public void setCaseCode(String caseCode) {
        this.caseCode = caseCode;
    }

    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    public String getPatiID() {
        return patiID;
    }

    public void setPatiID(String patiID) {
        this.patiID = patiID;
    }

    public String getPatiName() {
        return patiName;
    }

    public void setPatiName(String patiName) {
        this.patiName = patiName;
    }

    public String getExamName() {
        return examName;
    }

    public void setExamName(String examName) {
        this.examName = examName;
    }

    public String getCheckResult() {
        return checkResult;
    }

    public void setCheckResult(String checkResult) {
        this.checkResult = checkResult;
    }

    public Integer getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(Integer checkStatus) {
        this.checkStatus = checkStatus;
    }

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getFilesite() {
        return filesite;
    }

    public void setFilesite(String filesite) {
        this.filesite = filesite;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String getUpdateBy() {
        return updateBy;
    }

    @Override
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CheckMode checkMode = (CheckMode) o;
        return Objects.equals(caseCode, checkMode.caseCode) &&
                Objects.equals(checkCode, checkMode.checkCode) &&
                Objects.equals(patiID, checkMode.patiID) &&
                Objects.equals(patiName, checkMode.patiName) &&
                Objects.equals(examName, checkMode.examName) &&
                Objects.equals(checkResult, checkMode.checkResult) &&
                Objects.equals(checkStatus, checkMode.checkStatus) &&
                Objects.equals(createBy, checkMode.createBy) &&
                Objects.equals(filesite, checkMode.filesite) &&
                Objects.equals(filename, checkMode.filename) &&
                Objects.equals(createTime, checkMode.createTime) &&
                Objects.equals(updateBy, checkMode.updateBy) &&
                Objects.equals(updateTime, checkMode.updateTime) &&
                Objects.equals(remark, checkMode.remark);
    }

    @Override
    public int hashCode() {
        return Objects.hash(caseCode, checkCode, patiID, patiName, examName, checkResult, checkStatus, createBy, filesite, filename, createTime, updateBy, updateTime, remark);
    }

    @Override
    public String toString() {
        return "CheckMode{" +
                "caseCode='" + caseCode + '\'' +
                ", checkCode='" + checkCode + '\'' +
                ", patiID='" + patiID + '\'' +
                ", patiName='" + patiName + '\'' +
                ", examName='" + examName + '\'' +
                ", checkResult='" + checkResult + '\'' +
                ", checkStatus=" + checkStatus +
                ", createBy='" + createBy + '\'' +
                ", filesite='" + filesite + '\'' +
                ", filename='" + filename + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                ", remark='" + remark + '\'' +
                "} " + super.toString();
    }
}
